import wx

import resource.string.menu.file as r
import resource.toolbar as rTool

class File(wx.Menu):
    """File menu"""
    
    def __init__(self, *args, **kwargs):
        wx.Menu.__init__(self, *args, **kwargs)
        
        label = r.toggleSplit.label
        help = r.toggleSplit.help
        self.toggleSplit = wx.MenuItem(self, -1, label, help)
        bitmap = rTool.ArrowIn.Bitmap
        self.toggleSplit.Bitmap = bitmap
        self.AppendItem(self.toggleSplit)
        
        label = r.orientSplit.label
        help = r.orientSplit.help
        self.orientSplit = wx.MenuItem(self, -1, label, help)
        bitmap = rTool.ApplicationSplitVertical.Bitmap
        self.orientSplit.Bitmap = bitmap
        self.AppendItem(self.orientSplit)
        
        #self.pref = wx.MenuItem(self, -1, r.string.menu.file.preferences.label,
                                #r.string.menu.file.preferences.help)
        #self.pref.Bitmap = r.toolbar.Gear.Bitmap
        #self.AppendItem(self.pref)
        
        self.AppendSeparator()
        
        self.close = wx.MenuItem(self, -1, r.quit.label, r.quit.help)
        self.close.Bitmap = rTool.DoorOpenOut.Bitmap
        self.AppendItem(self.close)

